#include("/include/pageForm.html",action="admin/fee/share/search")

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="admin/fee/share/search" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>机构编号：</label>
				<input type="text" name="orgCode" value="#(orgCode)"/>
			</li>
			<li>
				<label>商户编号：</label>
				<input type="text" name="merchCode" value="#(merchCode)"/>
			</li>
			<li>
				<label>支付类别：</label>
				<select name="payType" class="required combox">
					<option value="">请选择支付类别</option>
					#for(payType : payTypeList)
               			<option value="#(payType.code )" #(payType.code == payTypeCode ? 'selected' : '' )>#(payType.name )</option>
               		#end
				</select>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			#auth()
				<li><a class="add" href="admin/fee/share/addFixedPage" target="dialog" rel="addTsDialog" width="800" height="400"><span>固定费率</span></a></li>
			#end
			#auth()
				<li><a class="add" href="admin/fee/share/addNotFixedPage" target="dialog" rel="addTsDialog" width="800" height="400"><span>差价费率</span></a></li>
			#end
			#auth()
				<li><a class="edit" href="admin/fee/share/updatePage?id={id}" target="dialog" warn="请选择一条分润费率"><span>修改</span></a></li>
			#end
			#auth()
				<li><a class="delete" href="admin/fee/share/delete?id={id}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一条分润费率"><span>删除</span></a></li>
			#end
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" style="width: 100%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="100">渠道编号</th>
				<th width="100">机构编号</th>
				<th width="100">商户编号</th>
				<th width="100">支付类别</th>
				<th width="100">分润费率</th>
				<th width="100">是否固定</th>
			</tr>
		</thead>
		<tbody>
			#for(item : items)
				<tr target="id" rel="#(item.id)">
					<td>
						#for(channel : channelList)   
							#if(item.channelCode ==  channel.code)
	                           #(channel.code) #(channel.name)
	                        #end 
                        #end
					</td>
					<td>#(item.orgCode )</td>
					<td>#(item.merchCode )</td>
					<td>
						#for(payType : payTypeList)
							#if(item.payTypeCode ==  payType.code)
	                            #(payType.name)
	                        #end
                        #end
					</td>
					<td>
						#for(feeModel : feeModelList) 
							#if(item.shareFeeId ==  feeModel.id)
	                            #(feeModel.name)
	                       #end
                        #end
					</td>
					<td>
						#if(item.isFixed == true)
							是
						#end
						#if(item.isFixed == false)
							否
						#end
					</td>
					
				</tr>
			#end
		</tbody>
	</table>
	</div>
	
	#include("/include/page.html")

</div>
